@import '@influxdata/clockface/dist/variables.scss';

$article-heading: #ffffff;

$article-text: #d4d7dd;

.GlobalSearch {
  .DocSearch-Modal {
    background-color: $cf-grey-25 !important;
    box-shadow: none;
    min-width: 690px !important;
    width: 40vw !important;
  }

  .DocSearch-Footer {
    display: none !important;
  }
  .DocSearch-Container {
    background: transparent;
    height: auto !important;
    position: absolute !important;
  }

  .DocSearch-Hit {
    padding-left: 0px !important;
    border-radius: 0px !important;
    margin-left: 6px !important;
    border-left: 2px solid $cf-grey-45;
    margin-bottom: 8px !important;
    &:hover {
      border-left: 2px solid $c-pool !important;
    }
  }

  .DocSearch-Hit-source {
    color: $article-heading;
    background: none;
    font-size: 21px;
    margin: 0px !important;
    font-weight: 400;
    margin-bottom: 4px !important;
    position: relative;
  }

  .DocSearch-Hit-title {
    color: $cf-grey-75;
    font-size: 15px;
    font-weight: 400;
  }

  .DocSearch-Hit-path {
    font-weight: bold !important;
    font-size: 13px;
    margin-top: 4px !important;
    color: $cf-grey-45;

    &:hover {
      color: $cf-grey-75;
    }
  }

  .DocSearch-Hit a {
    background: transparent !important;
    box-shadow: none;
    color: $article-text !important;
    padding: 0 !important;
  }

  .DocSearch-Hit-content-wrapper {
    overflow-x: clip;
  }

  .DocSearch-Hit-Container {
    height: 100% !important;
    padding-top: 4px !important;
  }

  .DocSearch-Hit-icon {
    display: none;
  }

  .DocSearch-SearchBar {
    padding: 0 !important;
  }
  .DocSearch-Form {
    display: block;
    width: 100% !important;
    height: 56px;
    margin: auto;
    border-radius: 4px 4px 0px 0px;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    font-family: $cf-text-font;
    color: $cf-grey-75;
    background-color: $cf-grey-25;
    background-image: url();
    background-position: left 17px center;
    background-repeat: no-repeat;
    background-size: 3.5%;
    padding: 0 52px;
    label {
      display: none;
    }
  }

  .DocSearch-Input {
    color: white;
    font-size: 21px !important;
  }

  .DocSearch-LoadingIndicator {
    display: none !important;
  }

  .DocSearch-Hit-path {
    font-weight: bold;
  }

  .DocSearch-Reset {
    top: 17px;
    position: absolute;
    right: 10px;
  }

  .DocSearch-Dropdown::-webkit-scrollbar-thumb {
    border: none;
    background: linear-gradient(
      rgb(190, 46, 228) 0%,
      rgb(0, 163, 255) 100%
    ) !important;
  }

  .DocSearch-Dropdown::-webkit-scrollbar {
    width: 6px;
  }

  .DocSearch-Dropdown {
    padding-top: 16px !important;
  }

  .DocSearch-StartScreen,
  .DocSearch-StartScreen > .DocSearch-Help {
    font-size: 1.3em !important;
  }

  .DocSearch-Hits mark {
    color: $c-pool !important;
  }
}
